import Layout from '@/layout'

const dataFillRouter = {
  path: '/dataFilling',
  component: Layout,
  // redirect: '/dataTask/table',
  name: 'DataFilling',
  alwaysShow: true,
  meta: { title: '数据填报', roles: ['sub-task-report', 'sub-task-review1', 'sub-task-review2'], icon: 'el-icon-s-claim' },
  children: [
    {
      path: 'workOrder',
      name: 'WorkOrder',
      component: () => import('@/views/dataFilling/workOrder/list.vue'),
      meta: { title: '工单填报', roles: ['sub-task-report'], icon: 'el-icon-s-order' }
    },
    {
      path: 'workReview',
      name: 'WorkReview',
      component: () => import('@/views/dataFilling/workReview/list.vue'),
      meta: { title: '工单审核', roles: ['sub-task-review1', 'sub-task-review2'], icon: 'el-icon-s-order' }
    }
  ]
}

export default dataFillRouter
